﻿using IFRS_Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


public partial class IFRS_TestFrom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //หน้าค้นหา

        DropDownList1.SetData(DDL_TYPE.StatusConfirmed, "", true);
        DropDownList2.SetData(DDL_TYPE.IsalamicDeposit, "", true);
        DropDownList3.SetData(DDL_TYPE.DayCountMethod, "", true);
        DropDownList4.SetData(DDL_TYPE.PaymentCondition, "", true);
        DropDownList5.SetData(DDL_TYPE.InterestType, "", true);
        DropDownList6.SetData(DDL_TYPE.CreditLevel, "", true);
        DropDownList7.SetData(DDL_TYPE.ContractLoanType, "", true);
        DropDownList8.SetData(DDL_TYPE.CalInterestCond, "", true);

        //หน้าเพิ่ม , แก้ไข 

        DropDownList9.SetData(DDL_TYPE.StatusConfirmed, "", false, false);
        DropDownList9.SelectedIndex = -1;
        DropDownList10.SetData(DDL_TYPE.IsalamicDeposit, "", false, false);
        DropDownList11.SetData(DDL_TYPE.DayCountMethod, "", false, false);
        DropDownList12.SetData(DDL_TYPE.PaymentCondition, "", false, false);

        //หน้าเพิ่ม , แก้ไข   (IS_REQUIRE)
        DropDownList13.SetData(DDL_TYPE.InterestType, "", false, true);
        DropDownList14.SetData(DDL_TYPE.CreditLevel, "", false, true);
        DropDownList15.SetData(DDL_TYPE.ContractLoanType, "", false, true);
        DropDownList16.SetData(DDL_TYPE.CalInterestCond, "", false, true);

        //

    }

    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win01_1S.aspx");
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win01_2E.aspx");
    }
    protected void LinkButton3_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win01_3V.aspx");
    }
    protected void LinkButton4_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win01_4A.aspx");
    }
    protected void LinkButton5_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win02_1S.aspx");
    }
    protected void LinkButton6_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win02_2E.aspx");
    }
    protected void LinkButton7_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win02_3V.aspx");
    }
    protected void LinkButton8_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/IFRS/Win02_4A.aspx");
    }
}